<%@page contentType="text/html;charset=UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/include/taglibs.jsp"%>
<%@ include file="/include/meta.jsp"%>
<script>
var syIconId="i_sy_syIcon_datagrid";
var syIconDt;
$(function(){
	var columns= [ [
	 {
		field : 'id',
		 
		width : '150'
	  }, 
	 {
		field : 'iconname',
		title:'图标名称', 
		width : '150'
	  } 
	] ];
	syIconDt=gDataGrid(syIconId,"${ctx}"+actionUrl('/sys/','syIcon','List'),'id',columns,eType.TreeGrid,'menuname');	
	var straddfun="dorow(syIconId,'','${ctx}"+actionUrl('/sys/','syIcon','Add')+"',updateFun,'c')";
	gDataGridToolbarBtn(syIconId,'icon-add',straddfun,"新增");
	var stredit="dorow(syIconId,'','${ctx}"+actionUrl('/sys/','syIcon','Update')+"',updateFun,'u')";
	gDataGridToolbarBtn(syIconId,'icon-edit',stredit,"修改");
	var strdelfun="dorow(syIconId,'您是否确定要删除选择的数据','${ctx}"+actionUrl('/sys/','syIcon','Delete')+"',updateFun,'d')";
	gDataGridToolbarBtn(syIconId,'icon-remove',strdelfun,"删除");
	var strexcelfun="dorow(syIconId,'您确定要导出数据','${ctx}"+actionUrl('/sys/','syIcon','Excel')+"',updateFun,'e')";
	gDataGridToolbarBtn(syIconId,'icon-add',strexcelfun,"导出");
});
function updateFun(d){
	top.setWeb();
}
</script>
</head>
<body>
 <table  id="i_sy_syIcon_datagrid"></table> 
</body>
</html>
